<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<div class="t_bar">
	<span class="color_red">*</span>研究内容（课题设置和研究内容）
</div>
<table  id="tblpatents" cellpadding="0" class="table01" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
	<col style="width:5%"/>
	<col style="width:5%"/>
	<col style="width:15%"/>
	<col style="width:75%"/>
	<thead >
	<tr style="border:1px solid #B7D1E6">
		<th class="TblHead" align="center" >选择</th>
		<th class="TblHead" align="center" >序号</th>
		<th class="TblHead" align="center" >课题名称</th>
		<th class="TblHead" align="center" >研究内容（限8000字）</th>
	</tr>
	</thead>
	<tbody id="tab">
	<tr style="display:none">
		<td align="center">
			<input type="radio" class="radiobutton" name="selpatents" >
		</td>
		<td align="center">&nbsp;
			<span name="patents|patent[0]@seq_no" >[index]</span>
		</td>
		<td align="center">
			<input name="patents|patent[0]|patent_name" maxlength="200" class="required input_text" label="课题名称" value="">
		</td>
		<td>
			<textarea name="patents|patent[0]|patent_contents" style="width:98%;autofocus:autofocus" maxlength="8000"
					  class="input_textarea required" label="研究内容" rows=5 cols=60></textarea>
			<input type="hidden" name="patents|patent[0]|patent_contents_hidden" value=""/>
		</td>
	</tr>


	<c:set value="0" var="index" scope="page"/>
	<x:forEach select="$xmlData/data/patents/patent" var="patent">

		<c:choose>
			<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
			<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
		</c:choose>
		<tr >
			<td align="center">
				<input type="radio" class="radiobutton" name="selpatents" >
			</td>
			<td align="center">
				<span   name="patents/patent[${flag}${index}]@seq_no" ><x:out select="$patent/@seq_no"/></span>
			</td>
			<td align="center">&nbsp;
				<input name="patents/patent[${flag}${index}]/patent_name" maxlength="200" class="input_text required " label="课题名称" value="<x:out select="$patent/patent_name"/>"/>
			</td>
			<td>
				<textarea name="patents/patent[${flag}${index}]/patent_contents" style="width:98%;autofocus:autofocus" maxlength="8000"
						  class="input_textarea required " label="研究内容" rows=5 cols=60><x:out select="$patent/patent_contents"/></textarea>
				<input type="hidden" name="patents/patent[${flag}${index}]/patent_contents_hidden" value="<x:out select="$patent/patent_contents_hidden"/>"/>
			</td>
		</tr>
		<c:set value="${index+1}" var="index" scope="page"/>
	</x:forEach>
	<script type="text/javascript">
		showAllDateTag("tblpatents");
	</script>
	</tbody>
</table>
<table width="98%" align="center">
	<tr ><td>
		<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblpatents',10,'研究内容最多只能填写10条')){addNewRow('tblpatents');showDateTag('tblpatents');}try{top.resizeFrame();}catch(e){};">
		<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblpatents','selpatents')">
		<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblpatents','selpatents')">
		<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblpatents','研究内容')">
	</td></tr>
</table>
